# 浮点数可能 会有四舍五入的误差
from importlib.util import source_hash

n1 = 0.1
n2 = 0.2

print(n1 + n2)  # 计算机 都有的误差

n3 = round(n1 + n2, 2)
print(n3)


import  math
#向上取整
n4 = math.ceil(n3)
print(n4)

#向下取整
n5 = math.floor(n3)
print(n5)